package org.seckill.TestSpring;

import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by wangyg 
 * on 2017/4/26 15:09
 */
public class Test {
	static Logger logger= LoggerFactory.getLogger(Test.class);
	public static void main(String[] args) {
		ApplicationContext context=new ClassPathXmlApplicationContext("classpath:spring/spring-cc.xml");
		ServiceA serviceA = ApplicationContextAwareHelper.getBean("serviceA", ServiceA.class);
		logger.info(serviceA.toString());
	}
}
